package com.ruoyi.baoming.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.baoming.mapper.ExamCenterCityMapper;
import com.ruoyi.baoming.domain.ExamCenterCity;
import com.ruoyi.baoming.service.IExamCenterCityService;

/**
 * 考点盟市信息Service业务层处理
 * 
 * @author xiaosong
 * @date 2024-11-20
 */
@Service
public class ExamCenterCityServiceImpl implements IExamCenterCityService 
{
    @Autowired
    private ExamCenterCityMapper examCenterCityMapper;

    /**
     * 查询考点盟市信息
     * 
     * @param id 考点盟市信息主键
     * @return 考点盟市信息
     */
    @Override
    public ExamCenterCity selectExamCenterCityById(Long id)
    {
        return examCenterCityMapper.selectExamCenterCityById(id);
    }

    /**
     * 查询考点盟市信息列表
     * 
     * @param examCenterCity 考点盟市信息
     * @return 考点盟市信息
     */
    @Override
    public List<ExamCenterCity> selectExamCenterCityList(ExamCenterCity examCenterCity)
    {
        return examCenterCityMapper.selectExamCenterCityList(examCenterCity);
    }

    /**
     * 新增考点盟市信息
     * 
     * @param examCenterCity 考点盟市信息
     * @return 结果
     */
    @Override
    public int insertExamCenterCity(ExamCenterCity examCenterCity)
    {
        return examCenterCityMapper.insertExamCenterCity(examCenterCity);
    }

    /**
     * 修改考点盟市信息
     * 
     * @param examCenterCity 考点盟市信息
     * @return 结果
     */
    @Override
    public int updateExamCenterCity(ExamCenterCity examCenterCity)
    {
        return examCenterCityMapper.updateExamCenterCity(examCenterCity);
    }

    /**
     * 批量删除考点盟市信息
     * 
     * @param ids 需要删除的考点盟市信息主键
     * @return 结果
     */
    @Override
    public int deleteExamCenterCityByIds(Long[] ids)
    {
        return examCenterCityMapper.deleteExamCenterCityByIds(ids);
    }

    /**
     * 删除考点盟市信息信息
     * 
     * @param id 考点盟市信息主键
     * @return 结果
     */
    @Override
    public int deleteExamCenterCityById(Long id)
    {
        return examCenterCityMapper.deleteExamCenterCityById(id);
    }
}
